package com.ll.servicebase.exceptionhandler;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 2020/10/18 - 23:06
 * 自定义异常类
 */
@Data
@AllArgsConstructor //生成有参构造方法
@NoArgsConstructor //生成无参构造方法
public class LLException extends RuntimeException{

    @ApiModelProperty(value = "状态码")
    private Integer code;

    //异常信息
    @ApiModelProperty(value = "异常信息")
    private String msg;
}
